package com.zx.framework.file.upload.vo;

import java.util.Date;

/**
 * 分片上传的文件内容,包含文件基本信息,文件分片等内容
 * Created by FLT on 2015/10/10.
 */
public class FileCtxVo {
    private String fileName;
    private Long fileCrc32;
    private Long fileSize;
    private Long chunkSize;
    private Date deadline;
    private String bucket;
    private String ctxKey;
    private Long chunkCrc32;
    private String chunkCtx;
    private String ctxArray;

    public FileCtxVo(){
    }

    public FileCtxVo(String fileName, Long fileCrc32, Long fileSize, Long chunkSize,
                     Date deadline, String bucket, String ctxKey, Long chunkCrc32) {
        this.fileName = fileName;
        this.fileCrc32 = fileCrc32;
        this.fileSize = fileSize;
        this.chunkSize = chunkSize;
        this.deadline = deadline;
        this.bucket = bucket;
        this.ctxKey = ctxKey;
        this.chunkCrc32 = chunkCrc32;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public Long getChunkSize() {
        return chunkSize;
    }

    public void setChunkSize(Long chunkSize) {
        this.chunkSize = chunkSize;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }

    public String getCtxKey() {
        return ctxKey;
    }

    public void setCtxKey(String ctxKey) {
        this.ctxKey = ctxKey;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Long getFileCrc32() {
        return fileCrc32;
    }

    public void setFileCrc32(Long fileCrc32) {
        this.fileCrc32 = fileCrc32;
    }

    public String getCtxArray() {
        return ctxArray;
    }

    public void setCtxsArray(String ctxArray) {
        this.ctxArray = ctxArray;
    }

    public long getChunkCrc32() {
        return chunkCrc32;
    }

    public void setChunkCrc32(Long chunkCrc32) {
        this.chunkCrc32 = chunkCrc32;
    }

    public String getChunkCtx() {
        return chunkCtx;
    }

    public void setChunkCtx(String chunkCtx) {
        this.chunkCtx = chunkCtx;
    }

    public void setCtxArray(String ctxArray) {
        this.ctxArray = ctxArray;
    }
}
